/*
 * sensor.h
 *
 * Created: 20/08/2011 9:08:56 a.m.
 *  Author: Isaac Manuel, Andrew Poland
 */ 


#ifndef __SENSOR_H__
#define __SENSOR_H__

#define TRUE 1
#define FALSE 0
#define NUM_COLOURS 3
#define GREYSTATELENGTH 10

#define IOPIN_LEFT 0
#define IOPIN_RIGHT 1


#include "motor.h"

void setupRead(void);
vechileState getVehicleState(void);


typedef enum {
	black = 0,
	white,
	grey
} readState;


/*typedef struct {
	int ioPin;
	readState currentState;
	int inUse;
} Sensor;*/

typedef struct Sensor {
	int ioPin;
	readState currentState;
	int inUse;
} Sensor;


#endif /* SENSOR_H_ */
